package com.zbkj.crmeb.store.response;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zbkj.crmeb.store.model.StoreProductAttrValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author Mr.Zhang
 * @since 2020-05-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="StoreProductCartProductInfoResponse对象", description="商品信息，购物车列表使用")
public class StoreProductCartProductInfoResponse extends StoreProductAttrValue implements Serializable {
    private static final long serialVersionUID=1L;

//    @ApiModelProperty(value = "商品id")
//    @TableId(value = "id", type = IdType.AUTO)
//    private Integer id;

    @ApiModelProperty(value = "商户Id(0为总后台管理员创建,不为0的时候是商户后台创建)")
    private Integer merId;

    @ApiModelProperty(value = "商品图片")
    private String image;

    @ApiModelProperty(value = "轮播图")
    private String sliderImage;

    @ApiModelProperty(value = "商品名称")
    private String storeName;

    @ApiModelProperty(value = "商品简介")
    private String storeInfo;

    @ApiModelProperty(value = "关键字")
    private String keyword;

    @ApiModelProperty(value = "商品条码（一维码）")
    private String barCode;

    @ApiModelProperty(value = "分类id")
    private Integer cateId;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal price;

    @ApiModelProperty(value = "会员价格")
    private BigDecimal vipPrice;

    @ApiModelProperty(value = "市场价")
    private BigDecimal otPrice;

    @ApiModelProperty(value = "邮费")
    private BigDecimal postage;

    @ApiModelProperty(value = "单位名")
    private String unitName;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "销量")
    private Integer sales;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    @ApiModelProperty(value = "是否包邮")
    private Boolean isPostage;

    @ApiModelProperty(value = "获得积分")
    private Integer giveIntegral;

    @ApiModelProperty(value = "成本价")
    private BigDecimal cost;
    
    @ApiModelProperty(value = "觅览成本价")
    private BigDecimal sourceCost;

    @ApiModelProperty(value = "是否单独分佣")
    private Boolean isSub;

    @ApiModelProperty(value = "运费模板ID")
    private Integer tempId;
    
    @ApiModelProperty(value = "发货地")
    private Integer stockArea;

    @ApiModelProperty(value = "sku详情")
    private StoreProductAttrValue attrInfo;

    @ApiModelProperty(value = "是否是europe接口数据")
    private Integer isEurope;

    @ApiModelProperty(value = "品牌id")
    private Integer brandId;

    @ApiModelProperty(value = "品牌名称")
    private String brandName;

    @ApiModelProperty(value = "季节")
    private String seasonCode;

    @ApiModelProperty(value = "供应商id")
    private Integer suppliersId;
    
    @ApiModelProperty(value = "供应商名称")
    private String supplierName;

    @ApiModelProperty(value = "平台加价率")
    private BigDecimal platRatio;

    @ApiModelProperty(value = "商户加价率")
    private BigDecimal merRatio;

    @ApiModelProperty(value = "加价金额")
    private BigDecimal raisePrice;

    @ApiModelProperty(value = "首段物流")
    private BigDecimal firstPrice;

    @ApiModelProperty(value = "二段物流")
    private BigDecimal secondPrice;

    @ApiModelProperty(value = "税费")
    private BigDecimal taxPrice;

    @ApiModelProperty(value = "操作用户id")
    private Integer userId;

    @ApiModelProperty(value = "操作用户")
    private String userName;
    
    @ApiModelProperty(value = "操作用户ip")
    private String ip;

    @ApiModelProperty(value = "汇率")
    private BigDecimal exchangeRate;

    @ApiModelProperty(value = "加价方式 0：默认分类加价 3：商品加价率 4：原价折扣")
    private Integer markupType;

    @ApiModelProperty(value = "加价率/折扣")
    private BigDecimal priceChange;

    @ApiModelProperty(value = "价格尾号")
    private Integer priceTailNumber;

    @ApiModelProperty(value = "新旧程度（二手商品必填）")
    private String degree;

    @ApiModelProperty(value = "自建转云仓标识")
    private Integer convertIsEurope;

    @ApiModelProperty(value = "供应商商品类型(1API接口  2表格导入  3商户自建转云仓)")
    private Integer commodityType;

    @ApiModelProperty(value = "二级会员售价")
    private BigDecimal v2Price;

    @ApiModelProperty(value = "三级会员售价")
    private BigDecimal v3Price;

}
